import 'dayjs/locale/zh-cn';
import locale from 'antd/locale/zh_CN';
import routes from "@/router/routes.tsx";
import {RouterProvider} from "react-router-dom";
import {App as ApplicationMessage, ConfigProvider, theme} from 'antd';

function App() {
    return (
        <ApplicationMessage>
            <ConfigProvider
                locale={locale}
                theme={{
                    algorithm: [theme.darkAlgorithm],
                    token: {
                        colorBgLayout: ""
                    }
                }}
            >
                <RouterProvider router={routes}/>
            </ConfigProvider>
        </ApplicationMessage>
    )
}

export default App
